package com.fc.advbox.service;

import java.util.List;
import java.util.Map;

/**
 * BaseService
 *
 * @author Gary.Jiang
 * @date 2018/6/27.15:27
 */
public interface BaseService<T> {

    T queryObject(Long id);

    void save(T entity);

    void update(T entity);

    void delete(Long id);

    List<T> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

}
